package weekfive;

public class array {
	public static void main(String[] args) {
		int[] a=new int[5];
		a[0]=0;
		a[1]=2;
		a[2]=4;
		a[3]=6;
		a[4]=8;
		for(int i=0;i<a.length;i++) {
			System.out.println("a["+i+"]="+a[i]);
		}
		System.out.println("-----------------------------------");
		for(int x:a) {
			System.out.println(x);
		}
		System.out.println("------------------------------------");
		int []c= {1,3,5,7,9};
		for(int i=0;i<c.length;i++) {
			System.out.println("c["+i+"]="+c[i]);
		}
		System.out.println("-----------------------------------");
	}

}
